package com.daiyang.campus_lucky_draw.contreller.param;

import lombok.Data;

import java.io.Serializable;

@Data
public class PageListParam implements Serializable {
    /**
     * 当前⻚
     */
    private Integer currentPage = 1;
    /**
     * 每⻚中的记录数
     */
    private Integer pageSize = 10;
    public Integer offset() {
        return (currentPage - 1) * pageSize;
    }
}